﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Drawing;

namespace MapEditor
{
    class AddControls
    {

        static public Panel addPanel(int Width, int Height, int Top, int Left, string tag,string file)
        {
            Panel p = new Panel();
            p.Width = Width;
            p.Height = Height;
            p.Top = Top;
            p.Left = Left;
            p.Tag = tag + "|" + file;
            p.BackgroundImageLayout = ImageLayout.Stretch;
            p.BackgroundImage = Image.FromFile(file);
            return p;
        }
    }
}
